package com.occludens.shared.dispatch;


import com.gwtplatform.dispatch.shared.Action;

public class GetUserAction implements Action<GetUserResult> { 

	  java.lang.String requestURI;

	  public GetUserAction(java.lang.String requestURI) {
	    this.requestURI = requestURI;
	  }

	  protected GetUserAction() {
	    // Possibly for serialization.
	  }

	  public java.lang.String getRequestURI() {
	    return requestURI;
	  }

	  @Override
	  public String getServiceName() {
	    return Action.DEFAULT_SERVICE_NAME + "GetUser";
	  }

	  @Override
	  public boolean isSecured() {
	    return false;
	  }

	  @Override
	  public boolean equals(Object obj) {
	    if (this == obj)
	        return true;
	    if (obj == null)
	        return false;
	    if (getClass() != obj.getClass())
	        return false;
	    GetUserAction other = (GetUserAction) obj;
	    if (requestURI == null) {
	      if (other.requestURI != null)
	        return false;
	    } else if (!requestURI.equals(other.requestURI))
	      return false;
	    return true;
	  }

	  @Override
	  public int hashCode() {
	    int hashCode = 23;
	    hashCode = (hashCode * 37) + (requestURI == null ? 1 : requestURI.hashCode());
	    return hashCode;
	  }

	  @Override
	  public String toString() {
	    return "GetUserAction["
	                 + requestURI
	    + "]";
	  }

}
